package com.demo.spring.test.service;

import java.util.HashMap;
import java.util.Map;

public class UserDao {

    private static Map<String, String> userMap = new HashMap<>();

    static {
        userMap.put("1001", "Hack");
        userMap.put("1002", "海明威");
        userMap.put("1003", "雨果");
    }

    public String getUser(String id) {
        return userMap.get(id);
    }
}
